package cn.ebook.service.dao.impl;

import java.util.List;

import cn.ebook.entity.Category;
import cn.ebook.jdbc.dao.CategoryDao;
import cn.ebook.jdbc.dao.impl.CategoryImpl;
import cn.ebook.service.dao.CategoryServiceDao;

public class CategoryServiceImpl implements CategoryServiceDao {
	/**
	 * 图书类型业务逻辑接口实现类
	 * 
	 * @author 洋洋洋.
	 * @date 2018-7-25 8:40.
	 * */
	// 获取图书类型(JNDI层)的实例
	private CategoryDao C;

	public CategoryServiceImpl() {
		C = new CategoryImpl();
	}

	/**
	 * @author 洋洋洋.
	 * @date 2018-7-25.
	 * */
	public List<Category> findAllCategorys() {
		try {
			return C.findAllCategorys();
		} catch (Exception e) {
			e.printStackTrace();
			return null;
		}
	}

}
